import request from '@/utils/request'
export default {

    // 查询所有课程分页数据包含查询条件
    queryAllCoursePage(current, limit, courseQuery) {
        return request({
            url: `/eduservice/coursefront/queryAllCoursePage/${current}/${limit}`,
            method: 'post',
            data: courseQuery
        })
    },

    // 根据课程id查询课程详情信息
    queryCourseInfoVoByCourseId(id) {
        return request({
            url: `/eduservice/coursefront/queryCourseInfoVoByCourseId/${id}`,
            method: 'get'
        })
    }
}